﻿using RPAVIEW.views.controlLibrary;
using System.Windows.Controls;

namespace RPAVIEW.views.EditPage.flows.ReceiveEmailN {
    /// <summary>
    /// Advance.xaml 的交互逻辑
    /// </summary>
    public partial class Advance:BaseParamViewAction{
        public Advance() {
            InitializeComponent();
        }

        public override void UpdateSource() {
            //this.dirType.GetBindingExpression(ComboBox.SelectedIndexProperty).UpdateSource();
            //this.dirName.GetBindingExpression(TextBox.TextProperty).UpdateSource();
            //this.tagReaded.GetBindingExpression(CheckBox.IsCheckedProperty).UpdateSource();
            //this.senderFilter.GetBindingExpression(TextBox.TextProperty).UpdateSource();
            //this.receiverFilter.GetBindingExpression(TextBox.TextProperty).UpdateSource();
            this.titleFilter.GetBindingExpression(SelVarTextBox.text).UpdateSource();
            this.contentFilter.GetBindingExpression(SelVarTextBox.text).UpdateSource();
        }

        private void DirTypeChanged(object sender, SelectionChangedEventArgs e) {
            /*if(this.dirType.SelectedIndex == 0) {
                this.dirName.Text = "INBOX";
                this.dirName.IsReadOnly = true;
            } else { 
                this.dirName.Text = "";
                this.dirName.IsReadOnly = false;
            }*/
        }
    }
}
